﻿using System;
using System.Text.RegularExpressions;

//(((int)RightChar.Add).ToString()
//增加 删除 修改 查询 导入 导出 打印 审核 审批 作废 设置
public enum RightChar { Add = 0, Del = 1, Mod = 2, Ser = 3, In = 4, Out = 5, Print = 6, Check = 7, CancelCheck = 8, Approve = 9, CancelApprove = 10, Fei = 11, CancelFei = 12, Set = 13 };
//限制，普通（自己），部门，公司，集团，超级
public enum RangeChar { Normal = 1, Dept = 2, Com = 3, Corp = 4, Super = 5, Limit = 6, Guest = 7 }

//存储登录数据用
[Serializable]
public class User
{
    public User()
    {
    }
    private string account;
    public string Account
    {
        get { return account; }
        set { account = value; }
    }
    private string password;
    public string Password
    {
        get { return password; }
        set { password = value; }
    }
    private Int32 departemntID;//所在部门ID
    public Int32 DepartemntID
    {
        get { return departemntID; }
        set { departemntID = value; }
    }
    //private Int32 roleID;//角色ID

    //public Int32 RoleID
    //{
    //    get { return roleID; }
    //    set { roleID = value; }
    //}
    //private string isSpecial;//特权等级

    //public string IsSpecial
    //{
    //    get { return isSpecial; }
    //    set { isSpecial = value; }
    //}
    private Int32 companyID;//所在公司的ID

    public Int32 CompanyID
    {
        get { return companyID; }
        set { companyID = value; }
    }
    private string propertie;//部门的属性

    public string Propertie
    {
        get { return propertie; }
        set { propertie = value; }
    }

}



